package com.richpay.basejava.base04;

public class BreakDemo01 {

    public static void main(String[] args) {
        int sum = 0;

        int i = 1;

        while (true) {
            sum += i;
            if (i == 50) {

                break;
            }
            i++;
        }

        System.out.println("sum="+sum);
    }
}
